import {get, post} from "@/utils/http";

// 机构列表
export async function fetchInstitution(params) {
    return await get('institution/search', params)
}

// 新增机构
export async function insertInstitution(params) {
    return await post('institution/insert', params)
}

// 编辑机构
export async function updateInstitution(params) {
    return await post('institution/update', params)
}

// 机构列表禁用/启用
export async function updateStatusInstitution(params) {
    return await post('institution/updateStatus', params)
}

// 机构列表获取总数
export async function fetchMoneyTotal(params) {
    return await get('institution/total', params)
}

// 机构列表 重置密码
export async function resetPasswordInstitution(params) {
    return await get('institution/resetPassword', params)
}

// 获取充值列表
export async function fetchRechargeList(params) {
    return await get('topUpInfo/search', params)
}

// 添加充值记录
export async function insertRecharge(params) {
    return await post('topUpInfo/recharge', params)
}

// 获取充值总计
export async function fetchRechargeTotal(params) {
    return await get('topUpInfo/total', params)
}

// 获取交易列表
export async function fetchTransactionList(params) {
    return await get('/consumeInfo/search', params)
}

// 获取交易总计
export async function fetchTransactionTotal(params) {
    return await get('consumeInfo/total', params)
}
